package com.tmt.fileservice.impl;

import com.tmt.fileservice.IFileValidator;
import lombok.Data;

import java.io.File;
import java.util.Map;

/**
 * Created by ThreeManTeam on 2017/5/25.
 */
@Data
public class DefaultFileValidator implements IFileValidator {

    private Map<String, String> validFileTypeAndMaxLength;

    @Override
    public void setParams(Map<String, String> params) {
        validFileTypeAndMaxLength = params;
    }

    @Override
    public boolean checkFileTypeAndLength(String fileType, Long fileLength) {
        return false;
    }

    @Override
    public boolean checkFileProperty(File file) {
        return false;
    }
}
